home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Begin VB.Form Explorer
- Caption = "Explorer"
- ClientHeight = 4395
- ClientLeft = 450
- ClientTop = 1965
- ClientWidth = 8730
- Icon = "Explorer.frx":0000
- LinkTopic = "Form1"
- LockControls = -1 'True
- MouseIcon = "Explorer.frx":030A
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 4395
- ScaleWidth = 8730
- Begin VB.PictureBox picToolbar
- Align = 1 'Align Top
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- ClipControls = 0 'False
- ForeColor = &H80000008&
- Height = 435
- Left = 0
- ScaleHeight = 435
- ScaleWidth = 8730
- TabIndex = 5
- Top = 0
- Width = 8730
- Begin ComctlLib.Toolbar Toolbar
- Height = 390
- Left = 0
- TabIndex = 6
- Top = 45
- Width = 7170
- _ExtentX = 12647
- _ExtentY = 688
- AllowCustomize = 0 'False
- ImageList = "imgToolbar"
- _Version = 327682
- BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7}
- NumButtons = 13
- BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- EndProperty
- BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "UpOneLevel"
- Object.ToolTipText = "Up One Level"
- Object.Tag = ""
- ImageIndex = 1
- EndProperty
- BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- EndProperty
- BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "ConNetDrive"
- Object.ToolTipText = "Map Network Drive"
- Object.Tag = ""
- ImageIndex = 2
- EndProperty
- BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "DisconNetDrive"
- Object.ToolTipText = "Disconnect Network Drive"
- Object.Tag = ""
- ImageIndex = 3
- EndProperty
- BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- EndProperty
- BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "ConHTTP"
- Object.ToolTipText = "Map HTTP Server"
- Object.Tag = ""
- ImageIndex = 4
- EndProperty
- BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "DisconHTTP"
- Object.ToolTipText = "Disconnect HTTP Server"
- Object.Tag = ""
- ImageIndex = 5
- EndProperty
- BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- EndProperty
- BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "LargeIcons"
- Object.ToolTipText = "Large Icons"
- Object.Tag = ""
- ImageIndex = 6
- Style = 2
- EndProperty
- BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "SmallIcons"
- Object.ToolTipText = "Small Icons"
- Object.Tag = ""
- ImageIndex = 7
- Style = 2
- EndProperty
- BeginProperty Button12 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "List"
- Object.ToolTipText = "List"
- Object.Tag = ""
- ImageIndex = 8
- Style = 2
- EndProperty
- BeginProperty Button13 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Details"
- Object.ToolTipText = "Details"
- Object.Tag = ""
- ImageIndex = 9
- Style = 2
- Value = 1
- EndProperty
- EndProperty
- End
- Begin VB.Label CrescentLabel
- AutoSize = -1 'True
- Caption = "Crescent Internet ToolPak"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = -1 'True
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 5820
- TabIndex = 14
- Top = 120
- Visible = 0 'False
- Width = 3030
- WordWrap = -1 'True
- End
- Begin VB.Line lneBorder
- BorderColor = &H00E0E0E0&
- Index = 9
- X1 = 0
- X2 = 20000
- Y1 = 15
- Y2 = 15
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808080&
- Index = 8
- X1 = 0
- X2 = 20000
- Y1 = 0
- Y2 = 0
- End
- End
- Begin VB.PictureBox picExplorer
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 3675
- Left = 0
- ScaleHeight = 3675
- ScaleWidth = 6255
- TabIndex = 2
- Top = 435
- Width = 6255
- Begin VB.PictureBox picHeader
- BorderStyle = 0 'None
- Height = 255
- Index = 0
- Left = 0
- ScaleHeight = 255
- ScaleWidth = 3075
- TabIndex = 12
- Top = 30
- Width = 3075
- Begin VB.Line lneBorder
- BorderColor = &H00FFFFFF&
- Index = 3
- X1 = 3060
- X2 = 3060
- Y1 = 0
- Y2 = 240
- End
- Begin VB.Line lneBorder
- BorderColor = &H00FFFFFF&
- Index = 4
- X1 = 0
- X2 = 20000
- Y1 = 240
- Y2 = 240
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808080&
- Index = 5
- X1 = 0
- X2 = 0
- Y1 = 0
- Y2 = 240
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808080&
- Index = 0
- X1 = 0
- X2 = 20000
- Y1 = 0
- Y2 = 0
- End
- Begin VB.Label lblHeader
- Caption = "All Folders"
- Height = 180
- Index = 0
- Left = 60
- TabIndex = 13
- Top = 30
- Width = 2985
- End
- End
- Begin VB.PictureBox picHeader
- BorderStyle = 0 'None
- Height = 255
- Index = 1
- Left = 3135
- ScaleHeight = 255
- ScaleWidth = 3105
- TabIndex = 10
- Top = 30
- Width = 3105
- Begin VB.Line lneBorder
- BorderColor = &H00808080&
- Index = 1
- X1 = 0
- X2 = 20000
- Y1 = 0
- Y2 = 0
- End
- Begin VB.Line lneBorder
- BorderColor = &H00808080&
- Index = 2
- X1 = 0
- X2 = 0
- Y1 = 0
- Y2 = 240
- End
- Begin VB.Line lneBorder
- BorderColor = &H00FFFFFF&
- Index = 6
- X1 = 0
- X2 = 20000
- Y1 = 240
- Y2 = 240
- End
- Begin VB.Line lneBorder
- BorderColor = &H00FFFFFF&
- Index = 7
- X1 = 3090
- X2 = 3090
- Y1 = 0
- Y2 = 240
- End
- Begin VB.Label lblHeader
- Height = 180
- Index = 1
- Left = 60
- TabIndex = 11
- Top = 30
- Width = 3000
- End
- End
- Begin VB.PictureBox picSeparator
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- DrawMode = 15 'Merge Pen Not
- ForeColor = &H80000008&
- Height = 3600
- Left = 3075
- MouseIcon = "Explorer.frx":0614
- MousePointer = 99 'Custom
- ScaleHeight = 3600
- ScaleWidth = 60
- TabIndex = 3
- Top = 45
- Width = 60
- End
- Begin ComctlLib.TreeView Tree
- Height = 3360
- Left = 0
- TabIndex = 0
- Top = 315
- Width = 3075
- _ExtentX = 5424
- _ExtentY = 5927
- _Version = 327682
- Indentation = 300
- LabelEdit = 1
- LineStyle = 1
- PathSeparator = "."
- Style = 7
- ImageList = "imgSmallIcons"
- Appearance = 1
- End
- Begin ComctlLib.ListView List
- DragIcon = "Explorer.frx":091E
- Height = 3360
- Left = 3150
- TabIndex = 1
- Top = 330
- Width = 3105
- _ExtentX = 5477
- _ExtentY = 5927
- View = 3
- LabelEdit = 1
- Sorted = -1 'True
- LabelWrap = -1 'True
- HideSelection = -1 'True
- _Version = 327682
- Icons = "imgLargeIcons"
- SmallIcons = "imgSmallIcons"
- ForeColor = 0
- BackColor = 16777215
- Appearance = 1
- NumItems = 4
- BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = "Name"
- Object.Tag = ""
- Text = "Name"
- Object.Width = 2540
- EndProperty
- BeginProperty ColumnHeader(2) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = "Size"
- Object.Tag = ""
- Text = "Size"
- Object.Width = 2540
- EndProperty
- BeginProperty ColumnHeader(3) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = "Type"
- Object.Tag = ""
- Text = "Type"
- Object.Width = 2540
- EndProperty
- BeginProperty ColumnHeader(4) {0713E8C7-850A-101B-AFC0-4210102A8DA7}
- Key = "Modified"
- Object.Tag = ""
- Text = "Modified"
- Object.Width = 2540
- EndProperty
- End
- End
- Begin ComctlLib.StatusBar StatusBar
- Align = 2 'Align Bottom
- Height = 285
- Left = 0
- TabIndex = 4
- Top = 4110
- Width = 8730
- _ExtentX = 15399
- _ExtentY = 503
- SimpleText = ""
- _Version = 327682
- BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
- NumPanels = 2
- BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
- AutoSize = 2
- Key = "TemplateType"
- Object.Tag = ""
- EndProperty
- BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7}
- AutoSize = 1
- Object.Width = 12330
- Key = "Author"
- Object.Tag = ""
- EndProperty
- EndProperty
- End
- Begin VB.Label lblReadMe
- Caption = "Contains icons for the Toolbar."
- ForeColor = &H00800000&
- Height = 525
- Index = 2
- Left = 7050
- TabIndex = 9
- Top = 1995
- Visible = 0 'False
- Width = 1275
- WordWrap = -1 'True
- End
- Begin VB.Label lblReadMe
- Caption = "Contains small icons for ListView and Treeview."
- ForeColor = &H00800000&
- Height = 600
- Index = 1
- Left = 7050
- TabIndex = 8
- Top = 1320
- Visible = 0 'False
- Width = 1275
- WordWrap = -1 'True
- End
- Begin VB.Label lblReadMe
- Caption = "Contains large icons for ListView."
- ForeColor = &H00800000&
- Height = 525
- Index = 0
- Left = 7050
- TabIndex = 7
- Top = 825
- Visible = 0 'False
- Width = 1275
- WordWrap = -1 'True
- End
- Begin ComctlLib.ImageList imgToolbar
- Left = 6405
- Top = 1905
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 9
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":0A70
- Key = "UpOneLevel"
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":0D8A
- Key = "ConNetDrive"
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":10A4
- Key = "DisconNetDrive"
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":13BE
- Key = "ConFTP"
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":16D8
- Key = "DisconFTP"
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":19F2
- Key = "LargeIcons"
- EndProperty
- BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":1D0C
- Key = "SmallIcons"
- EndProperty
- BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":2026
- Key = "List"
- EndProperty
- BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":2340
- Key = "Details"
- EndProperty
- EndProperty
- End
- Begin ComctlLib.ImageList imgSmallIcons
- Left = 6405
- Top = 1350
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 17
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":265A
- Key = "Desktop"
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":2974
- Key = "PC"
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":2C8E
- Key = "Network"
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":2FA8
- Key = "FolderClosed"
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":32C2
- Key = "FolderOpen"
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":35DC
- Key = "DriveNotShared"
- EndProperty
- BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":38F6
- Key = "DirveShared"
- EndProperty
- BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":3C10
- Key = "CDRom"
- EndProperty
- BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":3F2A
- Key = "NetDrive"
- EndProperty
- BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":4244
- Key = "FTPDrive"
- EndProperty
- BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":455E
- Key = "LocalFile"
- EndProperty
- BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":4878
- Key = "RemoteFile"
- EndProperty
- BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":4B92
- Key = "FloppyDrive"
- EndProperty
- BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":4EAC
- Key = "FTPServer"
- EndProperty
- BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":51C6
- Key = "HTTPLink"
- EndProperty
- BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":54E0
- Key = "HTTPLinkOpen"
- EndProperty
- BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":57FA
- Key = "PlaceHolder"
- EndProperty
- EndProperty
- End
- Begin ComctlLib.ImageList imgLargeIcons
- Left = 6405
- Top = 795
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 32
- ImageHeight = 32
- MaskColor = 12632256
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 15
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":5B14
- Key = "Desktop"
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":5E2E
- Key = "PC"
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":6148
- Key = "Network"
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":6462
- Key = "FolderClosed"
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":677C
- Key = "FolderOpen"
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":6A96
- Key = "DriveNotShared"
- EndProperty
- BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":6DB0
- Key = "DriveShared"
- EndProperty
- BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":70CA
- Key = "CDRom"
- EndProperty
- BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":73E4
- Key = "NetDrive"
- EndProperty
- BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":76FE
- Key = "FTPDrive"
- EndProperty
- BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":7A18
- Key = "LocalFile"
- EndProperty
- BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":7D32
- Key = "RemoteFile"
- EndProperty
- BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":804C
- Key = "FloppyDrive"
- EndProperty
- BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":8366
- Key = "FTPServer"
- EndProperty
- BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "Explorer.frx":8680
- Key = "HTTPLink"
- EndProperty
- EndProperty
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuFileProperties
- Caption = "P&roperties"
- Enabled = 0 'False
- End
- Begin VB.Menu mnuFileSeparator3
- Caption = "-"
- End
- Begin VB.Menu mnuFileClose
- Caption = "&Close"
- End
- End
- Begin VB.Menu mnuView
- Caption = "&View"
- Begin VB.Menu mnuViewToolbar
- Caption = "&Toolbar"
- Checked = -1 'True
- End
- Begin VB.Menu mnuViewStatusbar
- Caption = "Status &Bar"
- Checked = -1 'True
- End
- Begin VB.Menu mnuViewSeparator1
- Caption = "-"
- End
- Begin VB.Menu mnuViewHTTP
- Caption = "HTTP &Status"
- End
- Begin VB.Menu mnuViewSeparator2
- Caption = "-"
- End
- Begin VB.Menu mnuViewList
- Caption = "Lar&ge Icons"
- Index = 0
- End
- Begin VB.Menu mnuViewList
- Caption = "S&mall Icons"
- Index = 1
- End
- Begin VB.Menu mnuViewList
- Caption = "&List"
- Index = 2
- End
- Begin VB.Menu mnuViewList
- Caption = "&Detail"
- Checked = -1 'True
- Index = 3
- End
- Begin VB.Menu mnuViewSeparator3
- Caption = "-"
- End
- Begin VB.Menu mnuViewRefresh
- Caption = "&Refresh"
- End
- Begin VB.Menu mnuViewOptions
- Caption = "&Options..."
- Visible = 0 'False
- End
- End
- Begin VB.Menu mnuTools
- Caption = "&Tools"
- Begin VB.Menu mnuToolsFind
- Caption = "&Find..."
- Enabled = 0 'False
- End
- Begin VB.Menu mnuToolsSeparator1
- Caption = "-"
- End
- Begin VB.Menu mnuToolsMapNet
- Caption = "&Map Network Drive..."
- End
- Begin VB.Menu mnuToolsDisconNet
- Caption = "&Disconnect Network Drive..."
- End
- Begin VB.Menu mnuToolsSeparator2
- Caption = "-"
- End
- Begin VB.Menu mnuToolsMapHTTP
- Caption = "Map HTTP &Server..."
- End
- Begin VB.Menu mnuToolsDisconHTTP
- Caption = "Disc&onnect HTTP Server..."
- End
- Begin VB.Menu mnuToolsSeparator3
- Caption = "-"
- End
- Begin VB.Menu mnuToolsGoTo
- Caption = "&Go to..."
- Enabled = 0 'False
- End
- End
- Begin VB.Menu mnuHelp
- Caption = "&Help"
- Begin VB.Menu mnuHelpContents
- Caption = "&Contents"
- Enabled = 0 'False
- End
- Begin VB.Menu mnuHelpSeparator1
- Caption = "-"
- End
- Begin VB.Menu mnuHelpAbout
- Caption = "&About"
- End
- End
- Begin VB.Menu mnuFolderPopup
- Caption = "FolderPopup"
- Visible = 0 'False
- Begin VB.Menu mnuFPOpen
- Caption = "Open"
- End
- End
- Attribute VB_Name = "Explorer"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- '<Class> -------------------------------------
- Public MyName As String
- '</Class> ------------------------------------
- '<Constant>----------------------------------
- 'resizing --------------
- Const TreeViewContainer As Integer = 0
- Const ListViewContainer As Integer = 1
- Const BorderPad As Integer = 1335
- Const BorderWidth As Integer = 120
- Const FourPixels As Integer = 60
- Const SplitBarWidth As Integer = 60
- Const FrameLeft As Integer = 1905
- Const FrameTop As Integer = 45
- '</Constant>----------------------------------
- '<Private>------------------------------------
- Private ButtonClicked As Boolean
- Private DblClicking As Boolean
- Private Sizing As Boolean
- Private SplitterDrag As Boolean
- '</Private>-----------------------------------
- '<Public>-------------------------------------
- Public Dragging As Boolean
- Public Attachments As Collection 'extra data pertaining to a node
- Public ThisItem As ListItem
- Public LastNode As Node
- Public ThisNode As Node
- Public WorkingNode As Node
- Public PathSeparator As String
- '</Public>------------------------------------
- Private Sub List_ItemClick(ByVal Item As ListItem)
- Tree.HideSelection = True
- End Sub
- Private Sub Form_Initialize()
- MyName = "ciHTTPExplorer"
- Set Attachments = New Collection
- End Sub
- Private Sub Form_Load()
- Dim RootNode As Node
- Screen.MousePointer = vbHourglass
- '<Initialize TreeView>-----------------------
- '---- desktop
- Set RootNode = Tree.Nodes.Add(, , "Root", "Desktop", imgDesktop)
- '<MyComputer>-----------------------
- Set ThisNode = Tree.Nodes.Add(RootNode, tvwChild, RootNode.Key & "." & "MyComputer", "My Computer", imgPC)
- '---- also create and add attachment
- Dim ThisAttachment As New Attachment
- ThisAttachment.NodeType = nodMyComputer
- Call Attachments.Add(ThisAttachment, RootNode.Key & "." & "MyComputer")
- Set ThisAttachment = Nothing
- '---- local and network drives
- Call AddLocalDrives(Me, ThisNode)
- '</MyComputer>----------------------
- '<HTTPServers>-----------------------
- Set ThisNode = Tree.Nodes.Add(RootNode, tvwChild, RootNode.Key & "." & "HTTPServers", "HTTP Servers", imgHTTPServers)
- '---- also create and add attachment
- Dim ThisAttachment2 As New Attachment
- ThisAttachment2.NodeType = nodHTTPServers
- Call Attachments.Add(ThisAttachment2, RootNode.Key & "." & "HTTPServers")
- Set ThisAttachment2 = Nothing
- '---- stub out all servers designated "reconnect as startup"
- Call AddHTTPServers(Me, ThisNode)
- '</HTTPServers>----------------------
- '---- show all nodes
- Tree.Nodes(1).Expanded = True
- '</Initialize TreeView>----------------------
- Call GetWindowState(Me, MyName)
- Call GetSplitterBarState(Me, MyName)
- Call GetColumnHeaderState(Me, MyName)
- Screen.MousePointer = vbDefault
- End Sub
- '------------------------------------------------------
- '<Purpose> saves state information
- '------------------------------------------------------
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- Call SetWindowState(Me, MyName)
- Call SetSplitterBarState(Me, MyName)
- Call SetColumnHeaderState(Me, MyName)
- If (UnloadMode = vbFormControlMenu) Then ExitProc
- End Sub
- Private Sub Form_Resize()
- SizeMe
- End Sub
- Private Sub Form_Terminate()
- '---- explicitly destroy all objects
- Set Attachments = Nothing
- Set LastNode = Nothing
- Set ThisItem = Nothing
- Set ThisNode = Nothing
- Set WorkingNode = Nothing
- End Sub
- Private Sub lblHeader_DragDrop(Index As Integer, Source As Control, X As Single, y As Single)
- If (Index = 0) Then
- If (Source Is picSeparator) Then
- Call SplitMe(X, Tree)
- End If
- Else
- If (Source Is picSeparator) Then
- Call SplitMe(X, List)
- End If
- End If
- End Sub
- Private Sub List_ColumnClick(ByVal ColumnHeader As ColumnHeader)
- List.SortKey = ColumnHeader.Index - 1
- If (List.Sorted = False) Then
- List.Sorted = True
- List.SortOrder = 0
- Else
- If (List.SortOrder = 0) Then
- List.SortOrder = 1
- Else
- List.SortOrder = 0
- End If
- End If
- End Sub
- Private Sub List_DblClick()
- Dim WorkingNode As Node
- '<Launch Web Page>
- Dim CharPos As Integer
- Dim NodeKey As String
- Dim URL As String
- '<Launch Web Page>
- On Error GoTo BadNode
- DblClicking = True
- Select Case List.SelectedItem.Icon
- '<Launch Web Page>
- Case imgHTTPFile
- NodeKey = List.SelectedItem.Key
- CharPos = InStr(NodeKey, "~")
- If (CharPos > 0) Then
- NodeKey = left(NodeKey, CharPos - 1)
- If (LCase(left(List.SelectedItem, 7)) = "http://") Then
- URL = List.SelectedItem
- Else
- '---- the URL is the host name and the page that is selected
- URL = Attachments(NodeKey).Session.HTTPControl.HostName
- If (left(List.SelectedItem, 1) = "/") Then
- URL = URL & List.SelectedItem
- Else
- URL = URL & "/" & List.SelectedItem
- End If
- End If
- Call ShellExecute(Me.hwnd, "open", URL, 0, 0, 1)
- End If
- Case imgLocalFile
- GoTo Cleanup
- '<Launch Web Page>
- End Select
-
- Set WorkingNode = Tree.Nodes(List.SelectedItem.Key)
- WorkingNode.Expanded = True
- Cleanup:
- On Error GoTo 0
- Set WorkingNode = Nothing
- DblClicking = False
- Exit Sub
- BadNode:
- GoTo Cleanup
- End Sub
- Private Sub List_DragDrop(Source As Control, X As Single, y As Single)
- If (Source Is picSeparator) Then
- Call SplitMe(X, List)
- End If
- End Sub
- Private Sub List_KeyDown(KeyCode As Integer, Shift As Integer)
- If (KeyCode = vbKeyReturn) Then List_DblClick
- End Sub
- Private Sub mnuFileClose_Click()
- ExitProc
- End Sub
- Private Sub mnuFileProperties_Click()
- NotDone
- End Sub
- Private Sub mnuFPOpen_Click()
- List_DblClick
- End Sub
- Private Sub mnuHelpAbout_Click()
- AboutBox.Show vbModal
- End Sub
- Private Sub mnuHelpContents_Click()
- NotDone
- End Sub
- Private Sub mnuToolsDisconHTTP_Click()
- Dim ThisNode As Node
- Dim Alias As String
- Dim NodeKey As String
- '---- modify Reconnect bit in Server object
- With Disconnect
- Set .ServersNode = Tree.Nodes.Item("Root.HTTPServers")
- .Show vbModal
- If (Not .PressedOK) Then Exit Sub
- Alias = .Alias
- End With
- '---- disconnect the Server object and remove the node from the tree
- Call MapServers.Disconnect(Alias)
- Set ThisNode = Tree.Nodes.Item("Root.HTTPServers." & Alias)
- Call RemoveNode(ThisNode)
- Set ThisNode = Nothing
- End Sub
- Private Sub mnuToolsDisconNet_Click()
- '----- API to disconnect a network drive
- If (WNetDisconnectDialog(Me.hwnd, RESOURCETYPE_DISK) = ERROR_SUCCESS) Then
- '---- remove the drive
- Call RemoveNetDrive(Me, Tree.Nodes.Item("Root.MyComputer"))
- End If
- End Sub
- Private Sub mnuToolsFind_Click()
- NotDone
- End Sub
- Private Sub mnuToolsGoTo_Click()
- NotDone
- End Sub
- Private Sub mnuToolsMapHTTP_Click()
- Call MapServer(Me)
- End Sub
- Private Sub mnuToolsMapNet_Click()
- '---- API call that shows net connection dialog
- If (WNetConnectionDialog(Me.hwnd, RESOURCETYPE_DISK) = ERROR_SUCCESS) Then
- '---- load the new drive
- Call AddLocalDrives(Me, Tree.Nodes.Item("Root.MyComputer"))
- End If
- End Sub
- Private Sub mnuViewHTTP_Click()
- Status.Show
- End Sub
- Private Sub mnuViewList_Click(Index As Integer)
- Dim i As Integer
- Dim ButtonKey As String
- For i = 0 To 3
- mnuViewList(i).Checked = False
- Next
- mnuViewList(Index).Checked = True
- List.View = Index
- If ButtonClicked Then Exit Sub
- Select Case Index
- Case 0: ButtonKey = "LargeIcons"
- Case 1: ButtonKey = "SmallIcons"
- Case 2: ButtonKey = "List"
- Case 3: ButtonKey = "Details"
- End Select
- Toolbar.Buttons(ButtonKey).Value = tbrPressed
- End Sub
- Private Sub mnuViewOptions_Click()
- NotDone
- End Sub
- Private Sub mnuViewRefresh_Click()
- '---- force refresh of tree
- Set LastNode = Nothing
- Tree_NodeClick ThisNode
- End Sub
- Private Sub mnuViewStatusbar_Click()
- mnuViewStatusbar.Checked = (Not mnuViewStatusbar.Checked)
- StatusBar.Visible = mnuViewStatusbar.Checked
- Call SizeMe
- End Sub
- Private Sub mnuViewToolbar_Click()
- mnuViewToolbar.Checked = (Not mnuViewToolbar.Checked)
- picToolbar.Visible = mnuViewToolbar.Checked
- Call SizeMe
- End Sub
- Private Sub picSeparator_DragDrop(Source As Control, X As Single, y As Single)
- ClearCursor
- End Sub
- Private Sub picSeparator_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)
- If (Button <> vbLeftButton) Then Exit Sub
- Call ConfineCursor(y)
- picSeparator.Drag vbBeginDrag
- SplitterDrag = True
- End Sub
- Private Sub picSeparator_MouseUp(Button As Integer, Shift As Integer, X As Single, y As Single)
- ClearCursor
- End Sub
- Private Sub ClearCursor()
- If (Not SplitterDrag) Then Exit Sub
- ReturnCode = ClipCursorClear(0&)
- SplitterDrag = False
- End Sub
- Private Sub ConfineCursor(y As Single)
- Dim SplitterRectangle As RECT
- Dim Borders As Long
- Dim TreeLeft As Integer
- Call GetWindowRect(picSeparator.hwnd, SplitterRectangle)
- '---- set RECT variables
- Borders = SplitterRectangle.Top + (y \ Screen.TwipsPerPixelY)
- TreeLeft = (Me.left + 600) \ Screen.TwipsPerPixelX
- SplitterRectangle.left = TreeLeft
- SplitterRectangle.Top = Borders
- SplitterRectangle.right = TreeLeft + ((Me.Width - 1100) \ Screen.TwipsPerPixelX)
- SplitterRectangle.bottom = Borders
- ReturnCode = ClipCursorRect(SplitterRectangle)
- End Sub
- Private Sub Toolbar_ButtonClick(ByVal Button As Button)
- ButtonClicked = True
- Select Case Button.Key
- Case "ConNetDrive": mnuToolsMapNet_Click
- Case "DisconNetDrive": mnuToolsDisconNet_Click
- Case "ConHTTP": mnuToolsMapHTTP_Click
- Case "DisconHTTP": mnuToolsDisconHTTP_Click
- Case "Properties": mnuFileProperties_Click
- Case "Find": mnuToolsFind_Click
- Case "LargeIcons": mnuViewList_Click 0
- Case "SmallIcons": mnuViewList_Click 1
- Case "List": mnuViewList_Click 2
- Case "Details": mnuViewList_Click 3
- Case "UpOneLevel": UpOneLevel
- End Select
- ButtonClicked = False
- End Sub
- Private Sub Tree_Collapse(ByVal Node As Node)
- lblHeader(ListViewContainer).Caption = "Contents of '" & Node.Text & "'"
- Node.Selected = True
- End Sub
- Private Sub Tree_DragDrop(Source As Control, X As Single, y As Single)
- If (Source Is picSeparator) Then
- Call SplitMe(X, Tree)
- Exit Sub
- End If
- End Sub
- Public Sub SplitMe(X As Single, ThisControl As Control)
- Dim ProjectWidth As Integer
- Dim SplitContainerWidth As Integer
- ClearCursor
- '---- size the two project control
- If (ThisControl Is Tree) Then
- Tree.Width = X
- picSeparator.left = X
- Else
- picSeparator.left = List.left + X - SplitBarWidth
- Tree.Width = X + Tree.Width
- End If
- '---- cache widths
- ProjectWidth = Tree.Width
- SplitContainerWidth = Me.ScaleWidth
- '---- place and size the two feature control
- Call List.Move((picSeparator.left + SplitBarWidth), List.Top, (SplitContainerWidth - ProjectWidth - SplitBarWidth))
- '---- set header
- picHeader(TreeViewContainer).Width = ProjectWidth
- lblHeader(TreeViewContainer).Width = picHeader(TreeViewContainer).Width - FourPixels - 15
- lneBorder(3).X1 = picHeader(TreeViewContainer).Width - 15
- lneBorder(3).X2 = lneBorder(3).X1
- '---- set header
- picHeader(ListViewContainer).left = List.left
- picHeader(ListViewContainer).Width = List.Width
- lblHeader(ListViewContainer).Width = picHeader(ListViewContainer).Width - FourPixels
- lneBorder(7).X1 = picHeader(ListViewContainer).Width - 15
- lneBorder(7).X2 = lneBorder(7).X1
- End Sub
- Private Sub Tree_Expand(ByVal Node As Node)
- Tree_NodeClick Node
- End Sub
- Public Sub Tree_NodeClick(ByVal Node As Node)
- Dim NodeType As Integer
- '---- cache node
- Set ThisNode = Node
- '---- show appropriate captions
- Me.Caption = "Exploring - " & Node.Text
- lblHeader(ListViewContainer).Caption = "Contents of '" & Node.Text & "'"
- Select Case Node.Key
- Case "Root"
- lblHeader(TreeViewContainer).Caption = "All Services"
- Case "Root.MyComputer"
- lblHeader(TreeViewContainer).Caption = "All Local Drives"
- Case "Root.HTTPServers"
- lblHeader(TreeViewContainer).Caption = "All HTTP Servers"
- Case Else
- lblHeader(TreeViewContainer).Caption = "All Folders"
- End Select
- '---- no need to redraw twice in a row
- If (Not (LastNode Is Nothing)) Then
- If LastNode Is Node Then Exit Sub
- End If
- Set LastNode = Node
- '---- see if this node has been expanded before, if not remove the placeholder
- If (Not Node.Child Is Nothing) Then
- If (Node.Child.Text = nodPlaceHolder) Then
- Call Tree.Nodes.Remove(Node.Child.Key)
- End If
- End If
- Node.Selected = True
-
- On Error GoTo NoExtraData
- NodeType = Attachments(ThisNode.Key).NodeType
-
- '---- show appropriate status in panel 2
- Select Case NodeType
- Case nodLocalDrive
- StatusBar.Panels(2).Text = "Local Drive: " & Node.Text
- Case nodLocalFolder
- StatusBar.Panels(2).Text = "Local Folder: " & Node.Text
- Case nodHTTPServer
- StatusBar.Panels(2).Text = "HTTP Server: " & Node.Text
- Case nodHTTPFolder
- StatusBar.Panels(2).Text = "HTTP Folder: " & Node.Text
- Case Else
- StatusBar.Panels(2).Text = ""
- End Select
-
- '---- specific processing of node
- Select Case NodeType
- Case nodLocalDrive, nodLocalFolder
- '---- turn off redraw on TreeView and ListView
- Call SendMessage(Tree.hwnd, WM_SETREDRAW, REDRAWOFF, 0&)
- Call SendMessage(List.hwnd, WM_SETREDRAW, REDRAWOFF, 0&)
-
- '---- turn off sort until all items are added
- List.Sorted = False
-
- '---- add directories and files
- Call AddLocalDirs(Me, ThisNode)
- Call AddLocalFiles(Me, ThisNode)
-
- List.Sorted = True
- '---- turn redraw back on
- Call SendMessage(Tree.hwnd, WM_SETREDRAW, REDRAWON, 0&)
- Call SendMessage(List.hwnd, WM_SETREDRAW, REDRAWON, 0&)
-
- Case nodHTTPServer, nodHTTPFolder
-
- Me.MousePointer = vbHourglass
-
- '---- turn off sort until all items are added
- List.Sorted = False
-
- '---- add anchors, images, and tags
- List.ListItems.Clear
- Call ListHTTPServer(Me, ThisNode)
-
- List.Sorted = True
- Case Else
- List.ListItems.Clear
-
- '---- draw children in List list
- Call ListChildren(Me, ThisNode)
- End Select
- StatusBar.Panels(1).Text = List.ListItems.Count & " object(s)"
- Exit Sub
- NoExtraData:
- On Error GoTo 0
- NodeType = nodUndefined
- Resume Next
- End Sub
- '----------------------------------------------------------
- '<Purpose> resizes the controls to match the form size
- '----------------------------------------------------------
- Private Sub SizeMe()
- Dim ExplorerHeight As Integer
- Dim ExplorerTop As Integer
- '---- prevent recursive sizing
- If Sizing Then Exit Sub
- Sizing = True
- '---- calculate size of main area
- If picToolbar.Visible Then
- ExplorerHeight = (Me.Height - 470 - picToolbar.Height - BorderWidth)
- ExplorerTop = 435
- Else
- ExplorerHeight = (Me.Height - 470 - BorderWidth)
- ExplorerTop = 0
- End If
- If StatusBar.Visible Then
- ExplorerHeight = (ExplorerHeight - StatusBar.Height - BorderWidth)
- Else
- ExplorerHeight = (ExplorerHeight - BorderWidth)
- End If
- On Error Resume Next
- '---- place container
- picExplorer.Move 0, ExplorerTop, (Me.Width - 120), ExplorerHeight
- Tree.Move Tree.left, Tree.Top, Tree.Width, (picExplorer.Height - 285)
- List.Move List.left, List.Top, (Me.ScaleWidth - Tree.Width - SplitBarWidth), (picExplorer.Height - 285)
- picSeparator.Height = picExplorer.Height - 45
-
- picHeader(ListViewContainer).Width = List.Width
- lblHeader(ListViewContainer).Width = List.Width - BorderPad - 30
- lneBorder(7).X1 = picHeader(ListViewContainer).Width - 15
- lneBorder(7).X2 = lneBorder(7).X1
-
- On Error GoTo 0
- Sizing = False
- End Sub
- Private Sub UpOneLevel()
- On Error GoTo BadNode
- Set WorkingNode = ThisNode.Parent
- '---- select node
- Tree.HideSelection = True
- Tree.HideSelection = False
- Tree_NodeClick WorkingNode
- On Error GoTo 0
- Exit Sub
- BadNode:
- On Error GoTo 0
- End Sub
- '--------------------------------------------------------
- '<Purpose> removes an node and destroys it's attachment
- '--------------------------------------------------------
- Public Sub RemoveNode(ThisNode As Node)
- Dim NodeKey As String
- On Error GoTo BadNode
- '---- destroy any attachments
- NodeKey = ThisNode.Key
- On Error Resume Next
- Unload Attachments(NodeKey).Session
- Set Attachments(NodeKey).Session = Nothing
- Call Attachments.Remove(NodeKey)
- On Error GoTo 0
- '---- remove node from tree
- Tree.Nodes.Remove ThisNode.Key
- On Error GoTo 0
- Exit Sub
- BadNode:
- On Error GoTo 0
- End Sub
-